package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;

import java.util.List;

public interface MenuService {
    //分页查询
    PageResult findPage(QueryPageBean queryPageBean);

    //查询父菜单
    List<Menu> findParent();

    //新增菜单
    Integer add(Menu menu);

    //查询单个菜单
    Menu findById(Integer id);

    //编辑菜单
    Integer edit(Menu menu);

    //删除菜单
    Integer deleteById(Integer id);
}
